package com.example.zhunongzonghe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("zn_mores")
public class ZnMores implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 风俗文化表
     */
    @TableId(value = "mores_id", type = IdType.AUTO)
    private Integer moresId;

    /**
     * 风俗文化名
     */
    @TableField("mores_name")
    private String moresName;

    /**
     * 图片
     */
    @TableField("mores_picture")
    private String moresPicture;

    /**
     * 风俗文化介绍
     */
    @TableField("mores_introduce")
    private String moresIntroduce;
    /**
     * 属于哪个分类栏目
     */
    @TableField("classify_id")
    private Integer classifyId;
    /**
     * 所属地区
     */
    @TableField("district")
    private String district;
    /**
     * 详细地址
     */
    @TableField("detailed_address")
    private String detailedAddress;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;


}
